# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=dunst
pkgver=1.9.2
pkgrel=0
pkgdesc="Customizable and lightweight notification-daemon"
url="https://dunst-project.org/"
license="BSD-3-Clause"
arch="all"
depends="dunstify"
makedepends="libxscrnsaver-dev libxinerama-dev libxrandr-dev
	libnotify-dev dbus-dev wayland-dev perl pango-dev wayland-protocols"
checkdepends="dbus librsvg bash"
subpackages="$pkgname-doc dunstify"
source="$pkgname-$pkgver.tar.gz::https://github.com/dunst-project/dunst/archive/v$pkgver.tar.gz"

build() {
	make all dunstify
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" SYSCONFDIR=/etc PREFIX=/usr install
	install -Dm755 dunstify "$pkgdir"/usr/bin/dunstify
}

dunstify() {
	pkgdesc="notify-send compatible command with additional features"
	amove usr/bin/dunstify
}

sha512sums="
fab14212dc41e8deed97320c18b88e0be576f0404406691dcedb9620a1382dfdfc501e4ff2005b1ce8b4a61b52f1a9cf161f20a1eae15aa2382f3fedc99a2dbc  dunst-1.9.2.tar.gz
"
